package com.dongdong.api;

import com.dongdong.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("dds-pay-service")
public interface PayApi {
    @GetMapping("/pay/refundQuery")
    String refundQuery(@RequestParam String tradeNo,@RequestParam String refundAmount,@RequestParam String outRequestNo);
    //退款接口
    @GetMapping("/pay/tradeRefund")
    // SpringMVC
    public Result tradeRefund(@RequestParam String tradeNo, @RequestParam String refundAmount, @RequestParam String outRequestNo);

    }
